package edu.ncsu.csc.itrust.bean;

import java.text.SimpleDateFormat;
import java.util.Date;
import edu.ncsu.csc.itrust.beans.InstructionBean;
import junit.framework.TestCase;

public class InstructionBeanTest extends TestCase {

	InstructionBean b1;
	
	public void setUp(){
		b1 = new InstructionBean();
	}
	
	/**
	 * Test getters for Instruction Bean
	 */
	public void testGetters(){
		assertEquals( 0, b1.getInstructID() );
		assertEquals( 0, b1.getHCPID() );
		assertEquals( 0, b1.getPID() );
		assertEquals( "", b1.getDescriptName() );
		assertEquals( "", b1.getURL() );
		assertEquals( "", b1.getComments() );
		assertEquals( 0, b1.getOVID() );
		assertEquals( "", b1.getModDate() );
	}
	
	public void testSetters(){
		b1.setInstructID(1);
		b1.setHCPID(1);
		b1.setPID(1);
		b1.setDescriptName("a");
		b1.setURL("b");
		b1.setComments("c");
		b1.setOVID(1);
		b1.setModDate("01/01/11");
		assertEquals( 1, b1.getInstructID() );
		assertEquals( 1, b1.getHCPID() );
		assertEquals( 1, b1.getPID() );
		assertEquals( "a", b1.getDescriptName() );
		assertEquals( "b", b1.getURL() );
		assertEquals( "c", b1.getComments() );
		assertEquals( 1, b1.getOVID() );
		assertEquals( "01/01/11", b1.getModDate() );
	}
}
